Skip to content

Fix/pb 5990 implement thumbnail generation#266

Draft
AlexisMora wants to merge 7 commits intomainfrom
fix/pb-5990-implement-thumbnail-generation
Draft

Fix/pb 5990 implement thumbnail generation#266
AlexisMora wants to merge 7 commits intomainfrom
fix/pb-5990-implement-thumbnail-generation

Conversation

@AlexisMora
Copy link

@AlexisMora AlexisMora commented Mar 6, 2026

What is Changed / Added

  • Added Thumbnail generation and upload on file creation and replace for thumbnable files
  • When a file is uploaded through the virtual drive, a 256px PNG thumbnail is generated using Electron's nativeImage and uploaded to the storage bucket, then registered via POST /files/thumbnail
  • Thumbnail generation happens synchronously in the upload flow (inside TemporalFileUploader), the file buffer is read and passed through the domain event to avoid race conditions with temporal file deletion
  • Thumbnail upload is fire-and-forget so it does not block file creation
  • I have added 30s timeout on the bucket upload to prevent hanging requests, also added a cleared on completion.

Why

Thumbnails were not being generated on upload for the Linux desktop app

@AlexisMora AlexisMora force-pushed the fix/pb-5990-implement-thumbnail-generation branch from bda519c to d5cf969 Compare March 9, 2026 13:12
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
75.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant